import request from "@/utils/request";
let url = "/case";

export function projectList() {
  return request({
    url: url + "/projectList",
    method: "get",
  });
}

export function createDateShowByDate(params) {
  return request({
    url: url + "/createDateShowByDate",
    method: "post",
    data: params,
  });
}

export function createDateShow(params) {
  return request({
    url: url + "/createDateShowByDate",
    method: "post",
    data: params,
  });
}

export function caseTypeList() {
  return request({
    url: url + "/caseTypeList",
    method: "get",
  });
}

export function executeDateShow(params) {
  return request({
    url: url + "/executeDateShow",
    method: "post",
    data: params,
  });
}

export function executeTimeSlotShow(params) {
  return request({
    url: url + "/executeTimeSlotShow",
    method: "post",
    data: params,
  });
}

// http://172.16.150.28:8000/case/testSheetList?project_id=784&subsys_id=282
export function testSheetList(params) {
  if (!params) params = "";

  return request({
    url: url + "/testSheetList?" + params,
    method: "get",
  });
}

export function creatorList() {
  return request({
    url: url + "/creatorList",
    method: "get",
  });
}

export function caseStatuslist() {
  return request({
    url: url + "/caseStatuslist",
    method: "get",
  });
}

// export function executorList() {
//   return request({
//     url: url + "/executorList",
//     method: "get",
//   });
// }

export function executeRestultList() {
  return request({
    url: url + "/executeRestultList",
    method: "get",
  });
}

export function executorList() {
  return request({
    url: url + "/executorList",
    method: "get",
  });
}
export function subsysList(params) {
  if (!params) params = "";

  return request({
    url: url + "/subsysList" + params,
    method: "get",
  });
}
